section .data

global masOcho

section .text

masOcho:
	push ebp
	mov ebp, esp
	
	mov eax, [ebp + 8] ;eax = puntero al nodoMatriz
	mov ecx, [eax] ;ecx = filas
	mov edx, [eax + 4] ;edx = columnas
	mov esi, [eax + 8] ; esi = puntero a datos

	mov eax, ecx
	mov ecx, edx
	xor edx, edx
	
	mul ecx
	
	cmp eax, 0
	je fin	

ciclo:

	mov ecx, [esi+eax*4-4]
	add ecx, 8
	mov [esi+eax*4-4], ecx
	
	dec eax
	cmp eax, 0
	jne ciclo

fin:

	pop ebp
	ret